<script type="text/javascript" language="JavaScript">
  function check_name() {ldelim}
    if (document.getElementById('titles_name').value == '') {ldelim}
      alert("{#titles_ENTER_NAME#}");
      document.getElementById('titles_name').focus();
      return false;
    {rdelim}
    return true;
  {rdelim}
</script>
{strip}
<div class="pageHeaderTitle" style="padding-top: 7px;">
  <div class="h_module"></div>
  <div class="HeaderTitle"><h2>{#titles_EDIT#}</h2></div>
  <div class="HeaderText">{#titles_EDIT_TIP#}</div>
</div>
<br />
<div class="infobox">
  <a href="index.php?do=modules&action=modedit&mod=titles&moduleaction=1&cp={$sess}">&raquo;&nbsp;{#titles_RETURN#}</a>
</div>
<br />

  <form action="index.php?do=modules&action=modedit&mod=titles&moduleaction=saveedit&id={$title_id}&cp={$sess}" method="post" onSubmit="return check_name();">
  <table width="100%" border="0" cellpadding="8" cellspacing="1" class="tableborder">
    <tr class="tableheader">
      <td>{#titles_URL#}</td>
      <td>{#titles_TITLE#}</td>
    </tr>
    {foreach from=$titles item=items}
    <tr>
      <td class="second" width="350">Url:</td>
      <td class="second"><input name="url" type="text" id="url" size="60" value="{$items->url}" /></td>
    </tr>
    <tr>
      <td class="second" width="350">Title:</td>
      <td class="second"><input name="title" type="text" id="title" size="60" value="{$items->title}" /></td>
    </tr>
  	<tr>
      <td class="second" width="350">Keywords:</td>
      <td class="second"><input name="keywords" type="text" id="keywords" size="60" value="{$items->keywords}" /></td>
    </tr>
  	<tr>
      <td class="second" width="350">Description:</td>
      <td class="second"><input name="description" type="text" id="description" size="60" value="{$items->description}" /></td>
    </tr>
  	{/foreach}
    <tr>
    	<td colspan="2"><input name="submit" type="submit" class="button" value="{#titles_BUTTON_SAVE#}" /></td>
    </tr>
  </table>
</form>
{/strip}
